package com.xxin.service.impl;

import com.xxin.mapper.PatientMapper;
import com.xxin.mapper.RegistryMapper;
import com.xxin.pojo.vo.PatientVO;
import com.xxin.service.PatientService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author 小欣
 * @version 1.0
 * @since 1.8
 */
@Service
public class PatientServiceImpl implements PatientService {
	
	
	@Resource
	private PatientMapper patientMapper;
	
	@Resource
	private RegistryMapper registryMapper;
	
	@Override
	public PatientVO getInfoByRegistryId(Long id) {
		//设置状态为问诊中
		registryMapper.updateStatus(id,2);
		return patientMapper.selectByRegistryId(id);
	}
}
